#ifndef OLLAMAAPI_H
#define OLLAMAAPI_H

#include <QNetworkAccessManager>
#include <QObject>

class OllamaApi : public QObject
{
    Q_OBJECT
public:
    explicit OllamaApi(QObject *parent = nullptr);

    QString backend() const;
    void setBackend(const QString &newBackend);

    void version();

signals:
    void onTags();
    void onModels();
    void onVersion();

private:
    QString m_backend;
    QNetworkAccessManager *httpManager;
};

#endif // OLLAMAAPI_H
